<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>AutoSDK: /home/work/workspace/autosdk-integration-release/interfaces/public/hdmap/SpeedLimit.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AutoSDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ff6b5900125bb0123025c1cb24bdc726.html">interfaces</a></li><li class="navelem"><a class="el" href="dir_44bcb999a7ea3b353345d521e78cf779.html">public</a></li><li class="navelem"><a class="el" href="dir_2d4fcedf7b6eb4ead6d8450393a883dd.html">hdmap</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">SpeedLimit.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;hdmap/HDMapExports.hpp&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;hdmap/HDMapCommon.hpp&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_navinfo.html">Navinfo</a></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;{</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;    <span class="keyword">namespace </span>Engine</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;    {</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;        </div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html">   14</a></span>&#160;        <span class="keyword">class </span>HDMAP_API_PUBLIC <a class="code" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html">HDMapSpeedLimit</a></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;        {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;        <span class="keyword">public</span>:</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;            <a class="code" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html">HDMapSpeedLimit</a>(<span class="keyword">const</span> <a class="code" href="struct_navinfo_1_1_engine_1_1_h_d_map_geometry_range_reference.html">HDMapGeometryRangeReference</a>&amp; rangeReference, uint16_t nSpeedLimit,</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;                <a class="code" href="namespace_navinfo_1_1_engine.html#adbf2aa07ae2d27b98f056b40b8f4d8f9">HDMapDirection</a> ePositiveDirection, uint16_t vehicleTypes, uint16_t dependentTypes,</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;                uint16_t nConditionSpeedLimit, uint16_t minSpeedLimit);</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;            <a class="code" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html">HDMapSpeedLimit</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;            <span class="keyword">virtual</span> ~<a class="code" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html">HDMapSpeedLimit</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        <span class="keyword">public</span>:</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;            </div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#ae5c84bd754410ba5e44da2b031670c0d">   33</a></span>&#160;            <span class="keyword">const</span> uint16_t <a class="code" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#ae5c84bd754410ba5e44da2b031670c0d">GetSpeedLimit</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_nSpeedLimit; }</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#a60e1feb7465af5c001be7033de30ca61">   38</a></span>&#160;            <span class="keyword">const</span> uint16_t <a class="code" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#a60e1feb7465af5c001be7033de30ca61">GetMinSpeedLimit</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_nMinSpeedLimit; }</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#ababb52ef692b2213a10076f9dad5eab0">   43</a></span>&#160;            <span class="keyword">const</span> uint16_t <a class="code" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#ababb52ef692b2213a10076f9dad5eab0">GetConditionSpeedLimit</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_nConditionSpeedLimit; }</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#a418ef32769921a88b55f39e9a2fa45ea">   49</a></span>&#160;            <span class="keyword">const</span> <a class="code" href="namespace_navinfo_1_1_engine.html#adbf2aa07ae2d27b98f056b40b8f4d8f9">HDMapDirection</a> <a class="code" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#a418ef32769921a88b55f39e9a2fa45ea">GetPositiveDirection</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_ePositiveDirection; }</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#a35175273f279c1d895bf9695112d9c77">   54</a></span>&#160;            <span class="keyword">const</span> <a class="code" href="struct_navinfo_1_1_engine_1_1_h_d_map_geometry_range_reference.html">HDMapGeometryRangeReference</a>&amp; <a class="code" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#a35175273f279c1d895bf9695112d9c77">GetRangeReference</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mRangeReference; }</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#a7115e6404c981ee5e11e205b91009f15">   59</a></span>&#160;            <span class="keyword">const</span> uint16_t <a class="code" href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#a7115e6404c981ee5e11e205b91009f15">GetSpeedLimitByType</a>(<a class="code" href="namespace_navinfo_1_1_engine.html#a80e0002e5df22f6321713f823b86d71b">HDMapVehicleTypes</a> vehicleType, <a class="code" href="namespace_navinfo_1_1_engine.html#a79d1dbbd287287b970e55c2b7a4f841f">HDMapDependentType</a> dependedtType)</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            {</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                <span class="keywordflow">if</span> (dependedtType == HDMapDependentType::NO_DEPENDEDT_TYPE &amp;&amp; m_nDependentTypes != 0){</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;                    <span class="keywordflow">return</span> GetSpeedLimit();</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;                }</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;                <span class="keywordflow">if</span> (m_nVehicleTypes == 0 &amp;&amp; ((m_nDependentTypes) &gt;&gt; (uint16_t(dependedtType)) &amp; 1) == 1){</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;                    <span class="keywordflow">return</span> GetConditionSpeedLimit();</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;                }</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;                <span class="keywordflow">if</span> (((m_nVehicleTypes) &gt;&gt; (uint16_t(vehicleType)) &amp; 1) == 1)</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;                {</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;                    <span class="keywordflow">if</span> (m_nDependentTypes == 0){</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                        <span class="keywordflow">return</span> GetConditionSpeedLimit();</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                    }</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(((m_nDependentTypes) &gt;&gt; (uint16_t(dependedtType)) &amp; 1) == 1){</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                        <span class="keywordflow">return</span> GetConditionSpeedLimit();</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                    }</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                }</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                <span class="keywordflow">return</span> GetSpeedLimit();</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;            }</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <span class="keyword">private</span>:</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            <span class="keyword">const</span> uint16_t GetDependentType()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_nDependentTypes; }</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;            <span class="keyword">const</span> uint16_t GetVehicleType()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_nVehicleTypes; }</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        <span class="keyword">private</span>:</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;            uint16_t                    m_nSpeedLimit;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;            uint16_t                    m_nMinSpeedLimit;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            uint16_t                    m_nDependentTypes;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            uint16_t                    m_nVehicleTypes;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            uint16_t                    m_nConditionSpeedLimit;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;            <a class="code" href="namespace_navinfo_1_1_engine.html#adbf2aa07ae2d27b98f056b40b8f4d8f9">HDMapDirection</a>              m_ePositiveDirection;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;            <a class="code" href="struct_navinfo_1_1_engine_1_1_h_d_map_geometry_range_reference.html">HDMapGeometryRangeReference</a> mRangeReference;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        };</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    }</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;}</div><div class="ttc" id="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit_html_a60e1feb7465af5c001be7033de30ca61"><div class="ttname"><a href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#a60e1feb7465af5c001be7033de30ca61">Navinfo::Engine::HDMapSpeedLimit::GetMinSpeedLimit</a></div><div class="ttdeci">const uint16_t GetMinSpeedLimit() const </div><div class="ttdoc">get the minspeedlimit value on road geometry </div><div class="ttdef"><b>Definition:</b> SpeedLimit.hpp:38</div></div>
<div class="ttc" id="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit_html"><div class="ttname"><a href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html">Navinfo::Engine::HDMapSpeedLimit</a></div><div class="ttdoc">Speed limit condition, range and value for road or lane. </div><div class="ttdef"><b>Definition:</b> SpeedLimit.hpp:14</div></div>
<div class="ttc" id="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit_html_a418ef32769921a88b55f39e9a2fa45ea"><div class="ttname"><a href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#a418ef32769921a88b55f39e9a2fa45ea">Navinfo::Engine::HDMapSpeedLimit::GetPositiveDirection</a></div><div class="ttdeci">const HDMapDirection GetPositiveDirection() const </div><div class="ttdoc">get the speedlimit PositiveDirection on road geometry Positive direction (true) means from start simp...</div><div class="ttdef"><b>Definition:</b> SpeedLimit.hpp:49</div></div>
<div class="ttc" id="namespace_navinfo_html"><div class="ttname"><a href="namespace_navinfo.html">Navinfo</a></div><div class="ttdoc">Navinfo namespace. </div><div class="ttdef"><b>Definition:</b> AutoSDK.hpp:38</div></div>
<div class="ttc" id="struct_navinfo_1_1_engine_1_1_h_d_map_geometry_range_reference_html"><div class="ttname"><a href="struct_navinfo_1_1_engine_1_1_h_d_map_geometry_range_reference.html">Navinfo::Engine::HDMapGeometryRangeReference</a></div><div class="ttdoc">Feature location reference info. </div><div class="ttdef"><b>Definition:</b> HDMapCommon.hpp:133</div></div>
<div class="ttc" id="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit_html_ababb52ef692b2213a10076f9dad5eab0"><div class="ttname"><a href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#ababb52ef692b2213a10076f9dad5eab0">Navinfo::Engine::HDMapSpeedLimit::GetConditionSpeedLimit</a></div><div class="ttdeci">const uint16_t GetConditionSpeedLimit() const </div><div class="ttdoc">get the condition speedlimit value on road geometry when GetDependentType()!=0 </div><div class="ttdef"><b>Definition:</b> SpeedLimit.hpp:43</div></div>
<div class="ttc" id="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit_html_a35175273f279c1d895bf9695112d9c77"><div class="ttname"><a href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#a35175273f279c1d895bf9695112d9c77">Navinfo::Engine::HDMapSpeedLimit::GetRangeReference</a></div><div class="ttdeci">const HDMapGeometryRangeReference &amp; GetRangeReference() const </div><div class="ttdoc">get reference info of the speed limit data </div><div class="ttdef"><b>Definition:</b> SpeedLimit.hpp:54</div></div>
<div class="ttc" id="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit_html_ae5c84bd754410ba5e44da2b031670c0d"><div class="ttname"><a href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#ae5c84bd754410ba5e44da2b031670c0d">Navinfo::Engine::HDMapSpeedLimit::GetSpeedLimit</a></div><div class="ttdeci">const uint16_t GetSpeedLimit() const </div><div class="ttdoc">get the speedlimit value on road geometry </div><div class="ttdef"><b>Definition:</b> SpeedLimit.hpp:33</div></div>
<div class="ttc" id="namespace_navinfo_1_1_engine_html_a79d1dbbd287287b970e55c2b7a4f841f"><div class="ttname"><a href="namespace_navinfo_1_1_engine.html#a79d1dbbd287287b970e55c2b7a4f841f">Navinfo::Engine::HDMapDependentType</a></div><div class="ttdeci">HDMapDependentType</div><div class="ttdoc">Special type for speed limit query. </div><div class="ttdef"><b>Definition:</b> HDMapCommon.hpp:100</div></div>
<div class="ttc" id="namespace_navinfo_1_1_engine_html_a80e0002e5df22f6321713f823b86d71b"><div class="ttname"><a href="namespace_navinfo_1_1_engine.html#a80e0002e5df22f6321713f823b86d71b">Navinfo::Engine::HDMapVehicleTypes</a></div><div class="ttdeci">HDMapVehicleTypes</div><div class="ttdoc">type iff vehicles. make it as a bit of mask </div><div class="ttdef"><b>Definition:</b> HDMapCommon.hpp:80</div></div>
<div class="ttc" id="namespace_navinfo_1_1_engine_html_adbf2aa07ae2d27b98f056b40b8f4d8f9"><div class="ttname"><a href="namespace_navinfo_1_1_engine.html#adbf2aa07ae2d27b98f056b40b8f4d8f9">Navinfo::Engine::HDMapDirection</a></div><div class="ttdeci">HDMapDirection</div><div class="ttdoc">direction type </div><div class="ttdef"><b>Definition:</b> HDMapCommon.hpp:69</div></div>
<div class="ttc" id="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit_html_a7115e6404c981ee5e11e205b91009f15"><div class="ttname"><a href="class_navinfo_1_1_engine_1_1_h_d_map_speed_limit.html#a7115e6404c981ee5e11e205b91009f15">Navinfo::Engine::HDMapSpeedLimit::GetSpeedLimitByType</a></div><div class="ttdeci">const uint16_t GetSpeedLimitByType(HDMapVehicleTypes vehicleType, HDMapDependentType dependedtType)</div><div class="ttdoc">get speed limit value for vehicle type </div><div class="ttdef"><b>Definition:</b> SpeedLimit.hpp:59</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
